home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 930 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  2.8 KB

  1. Path: hades.rz.uni-sb.de!news
  2. From: rajsta@med-rz.uni-sb.de (Johannes Stahl)
  3. Newsgroups: comp.graphics.algorithms,comp.lang.c++,comp.os.ms-windows.programmer.graphics,comp.os.ms-windows.programmer.multimedia,comp.os.ms-windows.programmer.win32
  4. Subject: Re: IJG JPEG Engine and Win32
  5. Date: Mon, 08 Jan 1996 14:38:18 GMT
  6. Organization: University of Saarland, Computing Center, Germany.
  7. Message-ID: <4cr8tp$dp7@hades.rz.uni-sb.de>
  8. References: <4cemir$6vb@redstone.interpath.net> <TGL.96Jan3202549@netcom21.netcom.com> <4cj5ct$nth@redstone.interpath.net>
  9. NNTP-Posting-Host: ukdra02.med-ra.uni-sb.de
  10. X-Newsreader: Forte Free Agent 1.0.82
  11.  
  12. fortunat@interpath.com (Jumpstile Turner) wrote:
  13.  
  14. >In article <TGL.96Jan3202549@netcom21.netcom.com>, tgl@netcom.com said:
  15. >>  * Compiling them with different declarations for "boolean".  The IJG
  16. >>    code by default defines boolean = int, but Windows prefers
  17. >>    boolean = unsigned char.  Theoretically you should get a compile
  18. >>    error if both typedefs are visible in one compilation, but maybe
  19. >>    Borland fails to complain about it.
  20. >>
  21. >>If neither of those explain your problem, you'll have to do some more
  22. >>digging, but I'll bet lunch that the problem is of this general ilk.
  23.  
  24. >  Well I think this is my problem.  I don't know how to go about fixing it 
  25. >though.  Being as my application is a GUI application I NEED to include the 
  26. >windows.h file, so "BOOLEAN" will be defined as an unsigned char, however 
  27. >"boolean" is defined in one of the jpeglib includes as int.  If I went through 
  28. >all the source and changed "boolean" to "BOOLEAN" would this screw up jpeglib? 
  29. >Being as the source uses 0 for FALSE and 1 for TRUE I don't see why this 
  30. >shouldn't work.  I'll have to give it a go.
  31.  
  32. look at the first lines of my jconfig.h:
  33.  
  34. #define HAVE_BOOLEAN     // this will avoid redefinition of boolean
  35. // the following line is probably or definitely a hack
  36. // since it implicitly duplifies the definiction from rpcnrd.h
  37. typedef unsigned char boolean;  //conflict with RPCNRD.H  ---
  38.                           //  AAAAArrrrrrggghh!  JST
  39.  
  40. >  Oh yes, and lastly, with the borland BCC32 command line compiler, jdmerge.c 
  41. >will not compile.  I get an internal backend C1107 error at line 280.  This 
  42. >seems like a bug in the borland compiler. It will compile fine if I use 
  43. >BCC32A, the alternate compiler. I have to undefine UPSAMPLE_MERGING_SUPPORTED 
  44. >so it will skip the contents of jdmerge.c to get it to compile with the 
  45. >standard WIN32 compiler.
  46. You are right, this is a known bug. Most of the IJG library features
  47. work well without UPSAMPLE_MERGING_SUPPORTED.
  48.  
  49.  
  50.  
  51.  
  52.  
  53. --
  54. Dr. Johannes Stahl   Abt. Radiodiagnostik
  55. Radiologische Klinik, D66421 Homburg/Saar (GERMANY)
  56. Tel.: +49 6841 164600  Fax: +49 6841 164696
  57. e-mail: rajsta@med-rz.uni-sb.de
  58. http://www.med-rz.uni-sb.de/med_fak/radiodiagnostik/index.html
  59.  
  60.